{extend name="mainadmin@layouts/base" /}
{block name="main" }

<header class="header  b-b clearfix">
    <form id="forms" class="talbe-search form-inline "  method="post" action="{:url('getList')}" >
        <div class="page-breadcrumbs">
            <ul class="breadcrumb" >
                <li>
                    <i class="fa fa-ellipsis-v"></i>
                    <strong>提现列表</strong>
                </li>
            </ul>
            <select name="status"  style="width: 150px;" data-toggle="select2" data-notsearch="true" data-chang="submit"  >
                <option value="-1">所有状态</option>
                {$userWithdrawTypeOpt|raw}
            </select>
            <select name="type"  style="width: 150px;" data-toggle="select2"  data-notsearch="true"  data-chang="submit"  >
                <option value="">提现方式</option>
                <option value="bank" {$search['type']=='bank'?'selected':''}>银行卡提现</option>
                <option value="alipay" {$search['type']=='alipay'?'selected':''}>支付宝提现</option>
                <option value="wxpay" {$search['type']=='wxpay'?'selected':''}>微信提现</option>
            </select>
            <div class="form-group">
                <a class="btn btn-default " data-toggle="reportrange" data-change="submit">
                    <i class="fa fa-calendar fa-lg"></i>
                    <small>申请时间</small>
                    <span></span> <b class="caret"></b>
                    <input type="hidden" value="{$start_date} - {$end_date}" id="reportrange" name="reportrange" />
                </a>
            </div>
            <input type="text" class="form-control input-large" value="{$search.keyword}" name="keyword" placeholder="会员ID/帐号/手机" data-rule-required="true" />
            <button class="btn btn-sm btn-default-iq" type="submit" title="搜索"><i class="fa fa-search"></i></button>

            <button class="btn" type="submit" id="export_btn" ><i class="fa fa-cloud-download"></i>导出报表</button>

        </div>
    </form>
</header>

<section class="scrollable wrapper w-f ">
    <section class="panel panel-default ">
        <div class="table-responsive " id="list_box">
            {include file="sys_admin/withdraw/list" /}
        </div>
    </section>
</section>
<script type="text/javascript">
    $('#export_btn').click(function(){
        $('.talbe-search').append('<input type="hidden" name="is_export" id="is_export" value="1">').submit();
        $('#is_export').remove();
    })

    $(document).on('click','.operatbtn',function(){
        $('#operating').val($(this).data('type'));
        $('.postBtn').click();
    })
</script>
{/block}
